package com.heima.apis.user;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "leadnews-user", contextId = "realName")
public interface IUserRealnameClient {
    /**
     * 运维端用户审核的查询列表
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/list")
    ResponseResult list(@RequestBody AuthDto dto);

    /**
     * 运维端用户审核的审核失败
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authFail")
    ResponseResult authFail(AuthDto dto);

    /**
     * 运维端用户审核的审核成功
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authPass")
    public ResponseResult authPass(AuthDto dto);
}
